import axios from "../utils/request.js";
//登录
export const usersLoginReq = (data) =>
  axios({
    url: "/users/login",
    data,
    method: "post",
  });
// 全账号列表
export const usersListReq = (params) => {
  return axios({
    url: "/users/list",
    params,
    method: "get",
  });
};
// 查询
export const usersSearchReq = (params) =>
  axios({
    url: "/users/search",
    params,
    method: "get",
  });
//删除
export const usersDelReq = (params) =>
  axios({
    url: "/users/del",
    params,
    method: "get",
  });
// 删除选中
export const usersBatchdelReq = (data) =>
  axios({
    url: "/users/batchdel",
    data,
    method: "post",
  });
// 详情
export const usersGetbyidReq = (params) =>
  axios({
    url: "/users/getbyid",
    params,
    method: "get",
  });
// 编辑账号
export const usersEditReq = (params) =>
  axios({
    url: "/users/edit",
    params,
    method: "get",
  });
// 全账号添加
export const usersAddReq = (data) =>
  axios({
    url: "/users/add",
    data,
    method: "post",
  });
